package com.kemai.designmode.entry.fruit

import com.kemai.common.utils.AppUtils
import com.kemai.designmode.entry.Fruit
import com.kemai.designmode.visit.Visit

/**

 *@description:苹果实体类
 * @author: zhaoshanshan
 * @date: 2022/10/3 8:17 上午

 */
class Apple:Fruit {
    var price = 100.0
    override fun price(): Double {
        return price
    }

    override fun draw() {
        AppUtils.getInstance()?.showToast("我是红富士苹果")
    }

    override fun acpept(visit: Visit) {
        visit.sell(this)
    }
}